package com.example.design01.Service;

import com.example.design01.Bean.UserBean;
import com.example.design01.Dao.UserMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public UserBean checkUser(String nickname, String password) {
        return userMapper.checkUser(nickname,password);
    }

    @Override
    public int addUser(UserBean userBean) {
        return userMapper.addUser(userBean);
    }

    @Override
    public int updateUser(String password) {
        return userMapper.updateUser(password);
    }



}
